<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改员工')" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-post-edit" th:object="${crew}">
			<input id="crewId" name="crewId" type="hidden" th:field="*{crewId}"/>
			<div class="form-group">
				<label class="col-sm-3 control-label">员工姓名:</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="crewName" id="crewName" th:field="*{crewName}" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label ">员工性别：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="crewSex" id="crewSex" th:field="*{crewSex}" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label ">手机号：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="crewPhone" id="crewPhone" th:field="*{crewPhone}" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">所属部门:</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="crewDepartment" id="crewDepartment" th:field="*{crewDepartment}" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">员工状态：</label>
				<div class="col-sm-8">
					<select name="crewStatus" th:with="type=${@dict.getType('sys_normal_disable')}">
					<option value="在职">在职</option>
					<option value="离职">离职</option>
				</select>
				</div>
			</div>
		</form>
	</div>
	<th:block th:include="include :: footer" />
	<script type="text/javascript">
		var prefix = ctx + "hcy/administrations";
		function submitHandler() {
	        if ($.validate.form()) {
	        	$.operate.save(prefix + "/edit", $('#form-post-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
